#include <iostream>
#include <fstream>

int main()
{       
   std::ifstream inf("in.txt");
   std::ofstream outf("out.txt");

   int n;
   inf >> n;
   long long x = 0;
   long long y = 0;
   long long t = 0;
   int kx[4] = {1, 0, -1, 0};
   int ky[4] = {0, 1, 0, -1};

   for (int i = 0; i < n; i++)
   {
      if (i % 2 == 0)
	  {
	     t++; 
	  }
      outf << x << " " << y << "\n";
      x += kx[i % 4] * t;
      y += ky[i % 4] * t;
   }
   inf.close();
   outf.close();
   return 0;
}